package com.ygxsk.carhome.ui.care;

import android.content.Context;
import android.graphics.Color;

import androidx.annotation.NonNull;

import com.lxj.xpopup.core.BubbleAttachPopupView;
import com.lxj.xpopup.util.XPopupUtils;
import com.ygxsk.carhome.R;

/*
 * @Author:itchenqi175@163.com
 * @Time:2024/1/10  14:20
 * @Description:右侧弹窗的下拉的弹窗
 */
public class RightBubbleAttachPopup extends BubbleAttachPopupView {


    public RightBubbleAttachPopup(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.right_bubble_attach_popup;
    }

    @Override
    protected void onCreate() {
        super.onCreate();

        setBubbleBgColor(Color.WHITE);
        setBubbleShadowSize(XPopupUtils.dp2px(getContext(), 1));
        setBubbleShadowColor(Color.WHITE);
        setArrowWidth(XPopupUtils.dp2px(getContext(), 8));
        setArrowHeight(XPopupUtils.dp2px(getContext(), 9));
//                                .setBubbleRadius(100)
        setArrowRadius(XPopupUtils.dp2px(getContext(), 2));

    }
}
